import { Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { Part } from '../entity/part.entity';
import { BaseService } from './base.service';

@Injectable()
export class Partervice extends BaseService<Part> {
  constructor(
    @InjectRepository(Part)
    private readonly partRepository: Repository<Part>,
  ) {
    super(partRepository);
  }

  async findAll(id): Promise<Part[]> {
    return await this.partRepository.findByIds(id);
  }
}
